#!/usr/bin/env node

// Simple server startup script that keeps running
import('./src/index.js').then(module => {
  console.log('Backend server is running. Press Ctrl+C to stop.');

  // Keep the process alive
  process.on('SIGINT', () => {
    console.log('Received SIGINT, shutting down gracefully...');
    process.exit(0);
  });

  // Prevent the process from exiting
  setInterval(() => {
    // Keep event loop alive
  }, 1000);

}).catch(error => {
  console.error('Failed to start server:', error);
  process.exit(1);
});